package com.yenlien.traceyun.plant.dock_device.kebai;

import com.yenlien.traceyun.webase.entity.BaseEntity;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * @author jialong
 * @date 2021/03/31
 * @description: 科百平台返回的信息（接口： http://kebaidata.com/warn/getAllDataByUserid）
 **/
@Data
@Entity
@Table(name = "t_kebai")
public class KeBaiData extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 7908366850591650338L;

    /**
     * 我们平台的设备ID
     */
    private String equipmentId;

    /**
     * 地块ID
     */
    private String baseSoilId;

    /**
     * 公司ID
     */
    private String companyId;

    /**
     * 自己平台的设备名
     */
    private String equipmentName;

    /**
     * 节点名称
     */
    private String nodename;

    /**
     * 传感器单位
     */
    private String unit;

    /**
     * 实时值
     */
    private String senval;

    /**
     * 传感器类型
     */
    private String sensortype;

    /**
     * 节点编码, 相当于新风向里的设备编码  科百平台的设备ID
     */
    private String nodecode;

    /**
     * 传感器名称
     */
    private String sensorname;

    /**
     * 采集时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date thattime;

    /**
     * 测站名称
     */
    private String stationname;

    /**
     * 传感器编码
     */
    private String sensorcode;

    /**
     * 测站编码
     */
    private String stationcode;

    /**
     * 创建时间
     */
    private Date createTime;


    public KeBaiData() {
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public String getEquipmentId() {
        return equipmentId;
    }

    public void setEquipmentId(String equipmentId) {
        this.equipmentId = equipmentId;
    }

    public String getBaseSoilId() {
        return baseSoilId;
    }

    public void setBaseSoilId(String baseSoilId) {
        this.baseSoilId = baseSoilId;
    }

    public String getCompanyId() {
        return companyId;
    }

    public void setCompanyId(String companyId) {
        this.companyId = companyId;
    }

    public String getEquipmentName() {
        return equipmentName;
    }

    public void setEquipmentName(String equipmentName) {
        this.equipmentName = equipmentName;
    }

    public String getNodename() {
        return nodename;
    }

    public void setNodename(String nodename) {
        this.nodename = nodename;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public String getSenval() {
        return senval;
    }

    public void setSenval(String senval) {
        this.senval = senval;
    }

    public String getSensortype() {
        return sensortype;
    }

    public void setSensortype(String sensortype) {
        this.sensortype = sensortype;
    }

    public String getNodecode() {
        return nodecode;
    }

    public void setNodecode(String nodecode) {
        this.nodecode = nodecode;
    }

    public String getSensorname() {
        return sensorname;
    }

    public void setSensorname(String sensorname) {
        this.sensorname = sensorname;
    }

    public Date getThattime() {
        return thattime;
    }

    public void setThattime(Date thattime) {
        this.thattime = thattime;
    }

    public String getStationname() {
        return stationname;
    }

    public void setStationname(String stationname) {
        this.stationname = stationname;
    }

    public String getSensorcode() {
        return sensorcode;
    }

    public void setSensorcode(String sensorcode) {
        this.sensorcode = sensorcode;
    }

    public String getStationcode() {
        return stationcode;
    }

    public void setStationcode(String stationcode) {
        this.stationcode = stationcode;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}
